import java.util.*;
public class test03 
{
	static boolean isLeapYear(int yearIn){
    boolean resultIn=false;
	if((yearIn%4==0)&&(yearIn!=0)||(yearIn%400!=0))
		resultIn=true;
	return resultIn;}

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int year;
		boolean result;
		year=sc.nextInt();
		result=isLeapYear(year);
		System.out.println("year "+year+" is a "+result+"Leapyear.");
	}
}
